<template>
    <view class="page-box">
        <header class="header">
            <view class="progress">
                <view class="progress-step column rowCenter verCenter" :class="{ active: curr == index }" v-for="(item, index) in progress" :key="index" @click="tab(index)">
                    <text class="status-bar"></text>
                    <text class="tt">{{ item }}</text>
                </view>
            </view>
        </header>
        <section class="section">
            <template v-if="curr == 0">
                <!-- 车主信息 -->
                <view class="form-box" style="margin-bottom: 16rpx;">
                    <view class="form-title">车主信息</view>
                    <view class="form-item" v-if="checkingSupplyInfo.base_info_apply_name">
                        <view class="title required">主贷人姓名：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入主贷人姓名" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.base_info_apply_name" />
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.base_info_id_card">
                        <view class="title required">身份证号码：</view>
                        <view class="input-box row">
                            <input type="idcard" placeholder="请输入身份证号码" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.base_info_id_card" />
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.base_info_mobile">
                        <view class="title required">手机号码：</view>
                        <view class="input-box row">
                            <input type="tel" placeholder="请输入手机号码" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.base_info_mobile" />
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.base_info_email">
                        <view class="title required">邮箱：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入邮箱" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.base_info_email" />
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.base_info_domicile">
                        <view class="title required">户籍：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入户籍" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.base_info_domicile" />
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.base_info_qualification">
                        <view class="title required">学历：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker @change="bindPickerChange($event, 1)" :value="base_info_qualification_index" :range="base_info_qualification" :range-key="'name'" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="base_info_qualification_index == -1 ? { color: '#2E3233' } : {}">
                                            {{ base_info_qualification_index == -1 ? '请选择学历信息' : base_info_qualification[base_info_qualification_index].name }}
                                        </text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.base_info_property_situation">
                        <view class="title required">居住状态：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker @change="bindPickerChange($event, 2)" :value="base_info_property_situation_index" :range="base_info_property_situation" :range-key="'name'" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="base_info_property_situation_index == -1 ? { color: '#2E3233' } : {}">
                                            {{ base_info_property_situation_index == -1 ? '请选择居住状态' : base_info_property_situation[base_info_property_situation_index].name }}
                                        </text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.base_info_current_address">
                        <view class="title required">现居住地址：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入现居住地址" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.base_info_current_address" />
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.base_info_residence_time">
                        <view class="title required">居住时间：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker mode="date" @change="bindPickerChange($event, 3)" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="form.base_info_residence_time ? {} : { color: '#2E3233' }">{{ form.base_info_residence_time || '请选择居住时间' }}</text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.base_info_marital_situation">
                        <view class="title required">婚姻情况：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker @change="bindPickerChange($event, 4)" :value="base_info_marital_situation_index" :range="base_info_marital_situation" :range-key="'name'" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="base_info_marital_situation_index == -1 ? { color: '#2E3233' } : {}">
                                            {{ base_info_marital_situation_index == -1 ? '请选择婚姻情况' : base_info_marital_situation[base_info_marital_situation_index].name }}
                                        </text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.base_info_loan_purpose">
                        <view class="title required">贷款用途：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker @change="bindPickerChange($event, 5)" :value="base_info_loan_purpose_index" :range="base_info_loan_purpose" :range-key="'name'" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="base_info_loan_purpose_index == -1 ? { color: '#2E3233' } : {}">
                                            {{ base_info_loan_purpose_index == -1 ? '请选择贷款用途' : base_info_loan_purpose[base_info_loan_purpose_index].name }}
                                        </text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>

                    <!-- 4.0新增字段 -->
                    <view class="form-item" v-if="checkingSupplyInfo.habitancy_info_is_local">
                        <view class="title required">是否本地人：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker @change="bindPickerChange($event, 24)" :value="habitancy_info_is_local_index" :range="habitancy_info_is_local" :range-key="'name'" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="habitancy_info_is_local_index == -1 ? { color: '#2E3233' } : {}">
                                            {{ habitancy_info_is_local_index == -1 ? '请选择是否本地人' : habitancy_info_is_local[habitancy_info_is_local_index].name }}
                                        </text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.habitancy_info_is_local_house">
                        <view class="title required">本地是否有住房：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker @change="bindPickerChange($event, 25)" :value="habitancy_info_is_local_house_index" :range="habitancy_info_is_local_house" :range-key="'name'" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="habitancy_info_is_local_house_index == -1 ? { color: '#2E3233' } : {}">
                                            {{ habitancy_info_is_local_house_index == -1 ? '请选择本地是否有住房' : habitancy_info_is_local_house[habitancy_info_is_local_house_index].name }}
                                        </text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.habitancy_info_house_period">
                        <view class="title required">房屋居住年限：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入房屋居住年限" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.habitancy_info_house_period" />
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.habitancy_info_house_type">
                        <view class="title required">居住类型：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker @change="bindPickerChange($event, 26)" :value="habitancy_info_house_type_index" :range="habitancy_info_house_type" :range-key="'name'" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="habitancy_info_house_type_index == -1 ? { color: '#2E3233' } : {}">
                                            {{ habitancy_info_house_type_index == -1 ? '请选择居住类型' : habitancy_info_house_type[habitancy_info_house_type_index].name }}
                                        </text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.habitancy_info_house_address">
                        <view class="title required">房屋所在城市：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <view class="dropdown-wrap">
                                    <uni-data-picker :localdata="region" placeholder="请选择所在城市" popup-title="请选择城市" v-model="address1" @change="onchange" @nodeclick="onnodeclick($event, 2)"></uni-data-picker>
                                </view>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.habitancy_info_house_address">
                        <view class="title required">房屋居住详细地址：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入居住详细地址" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.habitancy_info_house_address_detail" />
                        </view>
                    </view>
                </view>
                <!-- 工作信息 -->
                <view class="form-box">
                    <view class="form-title">工作信息</view>
                    <view class="form-item" v-if="checkingSupplyInfo.base_info_income_source">
                        <view class="title required">收入来源：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker @change="bindPickerChange($event, 6)" :value="base_info_income_source_index" :range="base_info_income_source" :range-key="'name'" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="base_info_income_source_index == -1 ? { color: '#2E3233' } : {}">
                                            {{ base_info_income_source_index == -1 ? '请选择收入来源' : base_info_income_source[base_info_income_source_index].name }}
                                        </text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.work_info_first_job_date">
                        <view class="title required">首次工作日期：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker mode="date" @change="bindPickerChange($event, 8)" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="form.work_info_first_job_date ? {} : { color: '#2E3233' }">{{ form.work_info_first_job_date || '请选择首次工作日期' }}</text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.work_info_monthly_income">
                        <view class="title required">月收入：</view>
                        <view class="input-box row">
                            <input type="number" placeholder="请输入月收入" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.work_info_monthly_income" />
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.work_info_company_name">
                        <view class="title required">单位名称：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入单位名称" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.work_info_company_name" />
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.work_info_enter_current_company_date">
                        <view class="title required">进入现单位日期：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker mode="date" @change="bindPickerChange($event, 9)" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="form.work_info_enter_current_company_date ? {} : { color: '#2E3233' }">{{ form.work_info_enter_current_company_date || '请选择进入现单位日期' }}</text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.work_info_position">
                        <view class="title required">工作职务：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入工作职务" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.work_info_position" />
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.work_info_company_address">
                        <view class="title required">单位所在城市：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <view class="dropdown-wrap">
                                    <uni-data-picker :localdata="region" placeholder="请选择所在城市" popup-title="请选择城市" v-model="address" @change="onchange" @nodeclick="onnodeclick($event, 1)"></uni-data-picker>
                                </view>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.work_info_company_address">
                        <view class="title required">单位地址：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入单位地址" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.work_info_company_address" />
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.work_info_company_telphone">
                        <view class="title required">单位电话：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入单位电话" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.work_info_company_telphone" />
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.work_info_employment_situation">
                        <view class="title required">就业情况：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker @change="bindPickerChange($event, 21)" :value="work_info_employment_situation_index" :range="work_info_employment_situation" :range-key="'name'" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="work_info_employment_situation_index == -1 ? { color: '#2E3233' } : {}">
                                            {{ work_info_employment_situation_index == -1 ? '请选择就业情况' : work_info_employment_situation[work_info_employment_situation_index].name }}
                                        </text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.work_info_company_type">
                        <view class="title required">公司类型：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker @change="bindPickerChange($event, 22)" :value="work_info_company_type_index" :range="work_info_company_type" :range-key="'name'" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="work_info_company_type_index == -1 ? { color: '#2E3233' } : {}">
                                            {{ work_info_company_type_index == -1 ? '请选择公司类型' : work_info_company_type[work_info_company_type_index].name }}
                                        </text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.work_info_job_period">
                        <view class="title required">工作年限：</view>
                        <view class="input-box row">
                            <input type="number" placeholder="请输入工作年限" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.work_info_job_period" />
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.work_info_business_license_sn">
                        <view class="title required">营业执照号：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入营业执照号" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.work_info_business_license_sn" />
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.work_info_establishment_date">
                        <view class="title required">公司成立日期：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker mode="date" @change="bindPickerChange($event, 20)" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="form.work_info_establishment_date ? {} : { color: '#2E3233' }">{{ form.work_info_establishment_date || '请选择公司成立日期' }}</text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.work_info_annual_revenue">
                        <view class="title required">公司营业年收入：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入公司营业年收入（万元）" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.work_info_annual_revenue" />
                        </view>
                    </view>
                    <view class="form-item" v-if="checkingSupplyInfo.work_info_tech_title">
                        <view class="title required">工作职称：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker @change="bindPickerChange($event, 23)" :value="work_info_tech_title_index" :range="work_info_tech_title" :range-key="'name'" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="work_info_tech_title_index == -1 ? { color: '#2E3233' } : {}">
                                            {{ work_info_tech_title_index == -1 ? '请选择工作职称' : work_info_tech_title[work_info_tech_title_index].name }}
                                        </text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                </view>
            </template>
            <template v-if="curr == 1">
                <!-- 配偶信息 -->
                <view class="form-box" style="margin-bottom: 16rpx;" v-if="base_info_marital_situation_index == 0 && checkingSupplyInfo.contacts_info_spouse == 1">
                    <view class="form-title">配偶信息</view>
                    <view class="form-item">
                        <view class="title required">姓名：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入配偶姓名" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.contacts_info_spouse_name" @blur="handleBlur(form.contacts_info_spouse_name, form.contacts_info_spouse_mobile)" />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="title required">手机号：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入配偶手机号" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.contacts_info_spouse_mobile" @blur="handleBlur(form.contacts_info_spouse_name, form.contacts_info_spouse_mobile)" />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="title">身份证号码：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入身份证号码" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.contacts_info_spouse_id_card" />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="title">工作单位：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入工作单位" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.contacts_info_spouse_company" />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="title">工作单位地址：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入工作单位地址" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.contacts_info_spouse_company_addr" />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="title">工作单位电话：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入工作单位电话" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.contacts_info_spouse_company_phone" />
                        </view>
                    </view>
                </view>
                <!-- 紧急联系人1 -->
                <view class="form-box" style="margin-bottom: 16rpx;" v-if="checkingSupplyInfo.contacts_info_emergency_contact_1">
                    <view class="form-title">紧急联系人1（亲属)</view>
                    <view class="form-item">
                        <view class="title required">关系：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker @change="bindPickerChange($event, 10)" :value="contacts_info_emergency_contact_1_relationship_index" :range="contacts_info_emergency_contact_1_relationship" :range-key="'name'" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="contacts_info_emergency_contact_1_relationship_index == -1 ? { color: '#2E3233' } : {}">
                                            {{ contacts_info_emergency_contact_1_relationship_index == -1 ? '请选择与紧急联系人关系' : contacts_info_emergency_contact_1_relationship[contacts_info_emergency_contact_1_relationship_index].name }}
                                        </text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="title required">姓名：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入紧急联系人姓名" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.contacts_info_emergency_contact_1_name" />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="title required">手机号：</view>
                        <view class="input-box row">
                            <input type="tel" placeholder="请输入紧急联系人手机号" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.contacts_info_emergency_contact_1_mobile" />
                        </view>
                    </view>
                </view>
                <!-- 紧急联系人2 -->
                <view class="form-box" style="margin-bottom: 16rpx;" v-if="checkingSupplyInfo.contacts_info_emergency_contact_2">
                    <view class="form-title">紧急联系人2</view>
                    <view class="form-item">
                        <view class="title required">关系：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker @change="bindPickerChange($event, 11)" :value="contacts_info_emergency_contact_2_relationship_index" :range="contacts_info_emergency_contact_2_relationship" :range-key="'name'" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="contacts_info_emergency_contact_2_relationship_index == -1 ? { color: '#2E3233' } : {}">
                                            {{ contacts_info_emergency_contact_2_relationship_index == -1 ? '请选择与紧急联系人关系' : contacts_info_emergency_contact_2_relationship[contacts_info_emergency_contact_2_relationship_index].name }}
                                        </text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="title required">姓名：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入紧急联系人姓名" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.contacts_info_emergency_contact_2_name" />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="title required">手机号：</view>
                        <view class="input-box row">
                            <input type="tel" placeholder="请输入紧急联系人手机号" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.contacts_info_emergency_contact_2_mobile" />
                        </view>
                    </view>
                </view>
                <!-- 紧急联系人3 -->
                <view class="form-box" style="margin-bottom: 16rpx;" v-if="checkingSupplyInfo.contacts_info_emergency_contact_3">
                    <view class="form-title">紧急联系人3</view>
                    <view class="form-item">
                        <view class="title required">关系：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker @change="bindPickerChange($event, 12)" :value="contacts_info_emergency_contact_3_relationship_index" :range="contacts_info_emergency_contact_3_relationship" :range-key="'name'" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="contacts_info_emergency_contact_3_relationship_index == -1 ? { color: '#2E3233' } : {}">
                                            {{ contacts_info_emergency_contact_3_relationship_index == -1 ? '请选择与紧急联系人关系' : contacts_info_emergency_contact_3_relationship[contacts_info_emergency_contact_3_relationship_index].name }}
                                        </text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="title required">姓名：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入紧急联系人姓名" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.contacts_info_emergency_contact_3_name" />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="title required">手机号：</view>
                        <view class="input-box row">
                            <input type="tel" placeholder="请输入紧急联系人手机号" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.contacts_info_emergency_contact_3_mobile" />
                        </view>
                    </view>
                </view>
                <!-- 紧急联系人4 -->
                <view class="form-box" style="margin-bottom: 16rpx;" v-if="checkingSupplyInfo.contacts_info_emergency_contact_4">
                    <view class="form-title">紧急联系人4</view>
                    <view class="form-item">
                        <view class="title required">关系：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker @change="bindPickerChange($event, 13)" :value="contacts_info_emergency_contact_4_relationship_index" :range="contacts_info_emergency_contact_4_relationship" :range-key="'name'" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="contacts_info_emergency_contact_4_relationship_index == -1 ? { color: '#2E3233' } : {}">
                                            {{ contacts_info_emergency_contact_4_relationship_index == -1 ? '请选择与紧急联系人关系' : contacts_info_emergency_contact_4_relationship[contacts_info_emergency_contact_4_relationship_index].name }}
                                        </text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="title required">姓名：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入紧急联系人姓名" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.contacts_info_emergency_contact_4_name" />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="title required">手机号：</view>
                        <view class="input-box row">
                            <input type="tel" placeholder="请输入紧急联系人手机号" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.contacts_info_emergency_contact_4_mobile" />
                        </view>
                    </view>
                </view>
                <!-- 紧急联系人5 -->
                <view class="form-box" style="margin-bottom: 16rpx;" v-if="checkingSupplyInfo.contacts_info_emergency_contact_5">
                    <view class="form-title">紧急联系人5</view>
                    <view class="form-item">
                        <view class="title required">关系：</view>
                        <view class="dropdown row bothSide verCenter">
                            <view class="dropdown-wrap">
                                <picker @change="bindPickerChange($event, 14)" :value="contacts_info_emergency_contact_5_relationship_index" :range="contacts_info_emergency_contact_5_relationship" :range-key="'name'" style="width: 100%;">
                                    <view class="picker-wrap row bothSide verCenter" style="width: 100%;">
                                        <text class="uni-text" :style="contacts_info_emergency_contact_5_relationship_index == -1 ? { color: '#2E3233' } : {}">
                                            {{ contacts_info_emergency_contact_5_relationship_index == -1 ? '请选择与紧急联系人关系' : contacts_info_emergency_contact_5_relationship[contacts_info_emergency_contact_5_relationship_index].name }}
                                        </text>
                                    </view>
                                </picker>
                            </view>
                            <text class="dropdown-ico"></text>
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="title required">姓名：</view>
                        <view class="input-box row">
                            <input type="text" placeholder="请输入紧急联系人姓名" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.contacts_info_emergency_contact_5_name" />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="title required">手机号：</view>
                        <view class="input-box row">
                            <input type="tel" placeholder="请输入紧急联系人手机号" placeholder-style="color: #6E767A;" class="uni-input" v-model="form.contacts_info_emergency_contact_5_mobile" />
                        </view>
                    </view>
                </view>
            </template>
            <view class="btn row rowCenter verCenter" @click="submit()" :class="{ disabled: is_disabled }">{{ text }}</view>
        </section>
    </view>
</template>

<script>
import { API } from '@/util/api.js';
import { initWechatShare } from '@/util/util.js';
import debounce from 'lodash/debounce';
export default {
    data() {
        return {
            region: [], //城市列表
            address: 0,
            address1: 0,
            checkingSupplyInfo: {}, //验证只管是否配置显示
            orderInfo: {},
            text: '下一步',
            curr: 0,
            progress: ['基本信息', '联系人信息'],
            base_info_qualification: [{ name: '硕士', value: 1 }, { name: '本科', value: 2 }, { name: '大专', value: 3 }, { name: '中专', value: 4 }, { name: '普通高中', value: 6 }, { name: '初中', value: 7 }, { name: '小学', value: 8 }, { name: '文盲或半文盲', value: 9 }, { name: '博士', value: 11 }, { name: '其他学历', value: 12 }],
            base_info_qualification_index: -1,
            base_info_property_situation: [{ name: '自有全款房', value: '1' }, { name: '租房', value: '2' }, { name: '自有按揭房', value: '3' }, { name: '自建房', value: '4' }],
            base_info_property_situation_index: -1,
            base_info_marital_situation: [{ name: '未婚', value: 1 }, { name: '已婚', value: 3 }, { name: '丧偶', value: 5 }, { name: '离异', value: 6 }],
            base_info_marital_situation_index: -1,
            base_info_loan_purpose: [{ name: '消费', value: '1' }, { name: '经营', value: '2' }],
            base_info_loan_purpose_index: -1,
            base_info_income_source: [{ name: '上班', value: '1' }, { name: '做生意', value: '2' }, { name: '自由职业者', value: '3' }],
            base_info_income_source_index: -1,
            base_info_job_nature: [{ name: '自雇', value: '1' }, { name: '授薪', value: '2' }],
            base_info_job_nature_index: -1,
            contacts_info_emergency_contact_1_relationship: [{ name: '本人', value: 1 }, { name: '亲属', value: 2 }, { name: '朋友', value: 3 }, { name: '同事', value: 4 }, { name: '父母', value: 5 }, { name: '子女', value: 6 }, { name: '兄妹', value: 7 }, { name: '同学', value: 8 }, { name: '夫妻', value: 9 }],
            contacts_info_emergency_contact_1_relationship_index: -1,
            contacts_info_emergency_contact_2_relationship: [{ name: '本人', value: 1 }, { name: '亲属', value: 2 }, { name: '朋友', value: 3 }, { name: '同事', value: 4 }, { name: '父母', value: 5 }, { name: '子女', value: 6 }, { name: '兄妹', value: 7 }, { name: '同学', value: 8 }, { name: '夫妻', value: 9 }],
            contacts_info_emergency_contact_2_relationship_index: -1,
            contacts_info_emergency_contact_3_relationship: [{ name: '本人', value: 1 }, { name: '亲属', value: 2 }, { name: '朋友', value: 3 }, { name: '同事', value: 4 }, { name: '父母', value: 5 }, { name: '子女', value: 6 }, { name: '兄妹', value: 7 }, { name: '同学', value: 8 }, { name: '夫妻', value: 9 }],
            contacts_info_emergency_contact_3_relationship_index: -1,
            contacts_info_emergency_contact_4_relationship: [{ name: '本人', value: 1 }, { name: '亲属', value: 2 }, { name: '朋友', value: 3 }, { name: '同事', value: 4 }, { name: '父母', value: 5 }, { name: '子女', value: 6 }, { name: '兄妹', value: 7 }, { name: '同学', value: 8 }, { name: '夫妻', value: 9 }],
            contacts_info_emergency_contact_4_relationship_index: -1,
            contacts_info_emergency_contact_5_relationship: [{ name: '本人', value: 1 }, { name: '亲属', value: 2 }, { name: '朋友', value: 3 }, { name: '同事', value: 4 }, { name: '父母', value: 5 }, { name: '子女', value: 6 }, { name: '兄妹', value: 7 }, { name: '同学', value: 8 }, { name: '夫妻', value: 9 }],
            contacts_info_emergency_contact_5_relationship_index: -1,
            is_disabled: false,
            contactsValidation: {}, // 用于存储每对联系人的验证状态
            //4.0新增字段
            work_info_employment_situation: [{ name: '工薪人士', value: 1 }, { name: '个体工商户或企业主', value: 2 }, { name: '自由职业', value: 3 }],
            work_info_employment_situation_index: -1,
            work_info_company_type: [{ name: '内资企业', value: 100 }, { name: '国有企业', value: 110 }, { name: '联营企业', value: 140 }, { name: '有限责任公司', value: 150 }, { name: '股份有限公司', value: 160 }, { name: '私营企业', value: 170 }, { name: '三资企业（港、澳、台投资企业）', value: 200 }, { name: '外商投资企业', value: 300 }, { name: '个体经营', value: 400 }, { name: '其它', value: 500 }],
            work_info_company_type_index: -1,
            work_info_tech_title: [{ name: '无', value: 0 }, { name: '高级', value: 1 }, { name: '中级', value: 2 }, { name: '初级', value: 3 }, { name: '未知', value: 9 }],
            work_info_tech_title_index: -1,
            habitancy_info_is_local: [{ name: '否', value: 0 }, { name: '是', value: 1 }],
            habitancy_info_is_local_index: -1,
            habitancy_info_is_local_house: [{ name: '否', value: 0 }, { name: '是', value: 1 }],
            habitancy_info_is_local_house_index: -1,
            habitancy_info_house_type: [{ name: '自有全款购买', value: 1 }, { name: '按揭购买', value: 2 }, { name: '继承', value: 3 }, { name: '受赠', value: 4 }, { name: '其他', value: 7 }],
            habitancy_info_house_type_index: -1,
            form: {
                "order_id": "",
                "base_info_apply_name": "",
                "base_info_id_card": "",
                "base_info_mobile": "",
                "base_info_email": "",
                "base_info_domicile": "",
                "base_info_qualification": "",
                "base_info_current_address": "",
                "base_info_residence_time": "",
                "base_info_property_situation": "",
                "base_info_marital_situation": "",
                "base_info_income_source": "",
                "base_info_loan_purpose": "",
                "base_info_intended_loan_amount": "",
                "base_info_job_nature": "",
                "work_info_company_name": "",
                "work_info_company_address": "",
                "work_info_company_telphone": "",
                "work_info_monthly_income": "",
                "work_info_enter_current_company_date": "",
                "work_info_first_job_date": "",
                "work_info_position": "",
                "contacts_info_spouse_name": "",
                "contacts_info_spouse_id_card": "",
                "contacts_info_spouse_mobile": "",
                "contacts_info_spouse_company": "",
                "contacts_info_spouse_company_addr": "",
                "contacts_info_spouse_company_phone": "",
                "contacts_info_emergency_contact_1_name": "",
                "contacts_info_emergency_contact_1_mobile": "",
                "contacts_info_emergency_contact_1_relationship": "",
                "contacts_info_emergency_contact_2_name": "",
                "contacts_info_emergency_contact_2_mobile": "",
                "contacts_info_emergency_contact_2_relationship": "",
                "contacts_info_emergency_contact_3_name": "",
                "contacts_info_emergency_contact_3_mobile": "",
                "contacts_info_emergency_contact_3_relationship": "",
                "contacts_info_emergency_contact_4_name": "",
                "contacts_info_emergency_contact_4_mobile": "",
                "contacts_info_emergency_contact_4_relationship": "",
                "contacts_info_emergency_contact_5_name": "",
                "contacts_info_emergency_contact_5_mobile": "",
                "contacts_info_emergency_contact_5_relationship": "",
                //4.0新增字段
                "work_info_company_address_province_id": '',
                "work_info_company_address_city_id": '',
                "work_info_company_address_district_id": '',
                "work_info_employment_situation": '',
                "work_info_company_type": '',
                "work_info_job_period": '',
                "work_info_business_license_sn": '',
                "work_info_establishment_date": '',
                "work_info_annual_revenue": '',
                "work_info_tech_title": ''
            }
        };
    },
    onLoad(options) {
        this.form.order_id = options.order_id;
        this.getCheckingSupplyInfo();
        this.getRegion();
    },
    methods: {
        /**
         * 获取微信分享配置并初始化
         */
        generateSignature() {
            this.request(API.generateSignature, 'GET', { url: window.location.href }, true).then(res => {
                // 调用封装的微信分享方法
                initWechatShare({
                    appId: res.appId,
                    timestamp: res.timestamp,
                    nonceStr: res.nonceStr,
                    signature: res.signature,
                    title: '个人信息',
                    desc: '小朗优创-' + (this.orderInfo.product_name || ''),
                    link: window.location.href,
                    imgUrl: this.orderInfo.product_logo || ''
                }).then(shareData => {
                    console.log('微信分享配置成功', shareData);
                }).catch(error => {
                    console.error('微信分享配置失败', error);
                });
            });
        },
        /**
         * 监听城市
         * @param {Object} e
         */
        onchange(e) {

        },
        /**
         * 选择城市
         * @param {Object} node
         * @param {Object} type 
         */
        onnodeclick(node, type) {
            console.log(node)
            if (type == 1) {
                if (node.level == 1) {
                    this.form.work_info_company_address_province_id = node.value;
                } else if (node.level == 2) {
                    this.form.work_info_company_address_city_id = node.value;
                } else if (node.level == 3) {
                    this.form.work_info_company_address_district_id = node.value;
                }
            } else if (type == 2) {
                if (node.level == 1) {
                    this.form.habitancy_info_house_address_province_id = node.value;
                } else if (node.level == 2) {
                    this.form.habitancy_info_house_address_city_id = node.value;
                } else if (node.level == 3) {
                    this.form.habitancy_info_house_address_district_id = node.value;
                }
            }
        },
        handleBlur(realname, mobile) {
            if (mobile && realname) {
                var id = this.getContactId(realname, mobile);
                this.twoElementsRecognition(realname, mobile, id);
            }
        },
        getContactId(name, mobile) {
            // 根据姓名和手机号生成唯一ID
            return name + '_' + mobile;
        },
        handleInput: debounce(function (name, mobile) {
            if (name && mobile) {
                var id = this.getContactId(name, mobile);
                this.twoElementsRecognition(name, mobile, id);
            }
        }, 500),
        bindPickerChange(e, type) {
            var value = e.detail.value;
            var typeMap = {
                1: { index: 'base_info_qualification_index', field: 'base_info_qualification' },
                2: { index: 'base_info_property_situation_index', field: 'base_info_property_situation' },
                3: { field: 'base_info_residence_time' },
                4: { index: 'base_info_marital_situation_index', field: 'base_info_marital_situation' },
                5: { index: 'base_info_loan_purpose_index', field: 'base_info_loan_purpose' },
                6: { index: 'base_info_income_source_index', field: 'base_info_income_source' },
                7: { index: 'base_info_job_nature_index', field: 'base_info_job_nature' },
                8: { field: 'work_info_first_job_date' },
                9: { field: 'work_info_enter_current_company_date' },
                10: { index: 'contacts_info_emergency_contact_1_relationship_index', field: 'contacts_info_emergency_contact_1_relationship' },
                11: { index: 'contacts_info_emergency_contact_2_relationship_index', field: 'contacts_info_emergency_contact_2_relationship' },
                12: { index: 'contacts_info_emergency_contact_3_relationship_index', field: 'contacts_info_emergency_contact_3_relationship' },
                13: { index: 'contacts_info_emergency_contact_4_relationship_index', field: 'contacts_info_emergency_contact_4_relationship' },
                14: { index: 'contacts_info_emergency_contact_5_relationship_index', field: 'contacts_info_emergency_contact_5_relationship' },
                //4.0新增字段               
                20: { field: 'work_info_establishment_date' },
                21: { index: 'work_info_employment_situation_index', field: 'work_info_employment_situation' },
                22: { index: 'work_info_company_type_index', field: 'work_info_company_type' },
                23: { index: 'work_info_tech_title_index', field: 'work_info_tech_title' },
                24: { index: 'habitancy_info_is_local_index', field: 'habitancy_info_is_local' },
                25: { index: 'habitancy_info_is_local_house_index', field: 'habitancy_info_is_local_house' },
                26: { index: 'habitancy_info_house_type_index', field: 'habitancy_info_house_type' },

            };

            if (typeMap[type]) {
                if (type === 3 || type === 8 || type === 9 || type === 20) {
                    // 处理日期选择
                    this.form[typeMap[type].field] = e.detail.value;
                } else {
                    // 更新索引
                    this[typeMap[type].index] = value;
                    // 更新表单字段
                    this.form[typeMap[type].field] = this[typeMap[type].field][value].value;
                }
            }
        },
        /**
         * 获取地址
         */
        getRegion() {
            this.request(API.getRegion, 'GET', { get_pcd: 1 }, true).then(res => {
                if (res.code === 0) {
                    this.region = res.data[0].children;
                } else {
                    uni.showToast({
                        title: res.msg,
                        icon: 'none'
                    });
                }
            });
        },
        /**
         * 二要素核验接口
         */
        twoElementsRecognition(name, mobile, id) {
            this.request(API.twoElementsRecognition, 'POST', { name: name, mobile: mobile }, true).then(res => {
                // 更新指定联系人的验证状态
                this.$set(this.contactsValidation, id, res.code === 0);

                // 显示错误提示
                if (res.code !== 0) {
                    uni.showToast({
                        title: res.msg,
                        icon: 'none',
                        duration: 5000
                    });
                }
            });
        },
        /**
         * 进件字段配置信息
         */
        getCheckingSupplyInfo() {
            this.request(API.getCheckingSupplyInfo, 'GET', { order_id: this.form.order_id }, true).then(res => {
                if (res.code === 0) {
                    this.checkingSupplyInfo = res.data;
                    this.getOrderAddedInfo();
                } else {
                    // 获取信息失败的情况下，直接跳转
                    uni.redirectTo({
                        url: `/pages/order/selfDetail?order_id=${this.form.order_id}`
                    });
                }
            });
        },
        /**
         * 获取进件已经填写的资料
         */
        getOrderAddedInfo() {
            this.request(API.getOrderAddedInfo, 'GET', { order_id: this.form.order_id }, true).then(res => {
                this.orderInfo = res;
                this.generateSignature();
                
                if (this.orderInfo.base_info_apply_name) {
                    this.address = this.orderInfo.work_info_company_address_district_id * 1; //地址选中，只需要赋值区就可以
                    this.address1 = this.orderInfo.habitancy_info_house_address_district_id * 1; //地址选中，只需要赋值区就可以

                    var fields = [
                        'base_info_apply_name', 'base_info_id_card', 'base_info_mobile', 'base_info_email',
                        'base_info_domicile', 'base_info_current_address',
                        'base_info_residence_time', 'base_info_property_situation', 'base_info_marital_situation',
                        'base_info_income_source', 'base_info_loan_purpose', 'base_info_intended_loan_amount', 'base_info_job_nature',
                        'work_info_company_name', 'work_info_company_address', 'work_info_company_telphone',
                        'work_info_monthly_income', 'work_info_enter_current_company_date', 'work_info_first_job_date', 'work_info_position',
                        'contacts_info_spouse_name', 'contacts_info_spouse_id_card', 'contacts_info_spouse_mobile', 'contacts_info_spouse_company', 'contacts_info_spouse_company_addr', 'contacts_info_spouse_company_phone',
                        'contacts_info_emergency_contact_1_name', 'contacts_info_emergency_contact_1_mobile', 'contacts_info_emergency_contact_1_relationship',
                        'contacts_info_emergency_contact_2_name', 'contacts_info_emergency_contact_2_mobile', 'contacts_info_emergency_contact_2_relationship',
                        'contacts_info_emergency_contact_3_name', 'contacts_info_emergency_contact_3_mobile', 'contacts_info_emergency_contact_3_relationship',
                        'contacts_info_emergency_contact_4_name', 'contacts_info_emergency_contact_4_mobile', 'contacts_info_emergency_contact_4_relationship',
                        'contacts_info_emergency_contact_5_name', 'contacts_info_emergency_contact_5_mobile', 'contacts_info_emergency_contact_5_relationship',
                        'work_info_company_address_province_id', 'work_info_company_address_city_id', 'work_info_company_address_district_id',
                        'work_info_employment_situation', 'work_info_company_type', 'work_info_job_period',
                        'work_info_business_license_sn', 'work_info_establishment_date', 'work_info_annual_revenue',
                        'work_info_tech_title', 'habitancy_info_house_period', 'habitancy_info_house_address_detail'
                    ];

                    fields.forEach(field => {
                        if (this.orderInfo[field] !== undefined && this.orderInfo[field] !== null) {
                            this.form[field] = this.orderInfo[field];
                        }
                    });


                    //解析身份证赋值
                    if (this.orderInfo.vehicle_owner_id_card) {
                        this.form.base_info_id_card = this.orderInfo.vehicle_owner_id_card;
                    }

                    // 处理其他下拉选择框
                    var indexFields = [
                        'base_info_property_situation', 'base_info_marital_situation',
                        'base_info_loan_purpose', 'base_info_income_source', 'base_info_job_nature',
                        'contacts_info_emergency_contact_1_relationship', 'contacts_info_emergency_contact_2_relationship',
                        'contacts_info_emergency_contact_3_relationship', 'contacts_info_emergency_contact_4_relationship',
                        'contacts_info_emergency_contact_5_relationship', 'work_info_company_type', 'work_info_employment_situation',
                        'work_info_tech_title', 'habitancy_info_is_local', 'habitancy_info_is_local_house', 'habitancy_info_house_type',
                        'base_info_qualification'
                    ];

                    indexFields.forEach(field => {
                        const index = `${field}_index`;
                        if (this.orderInfo[field] !== undefined && this.orderInfo[field] !== null) {
                            this[index] = this[field].findIndex(item => item.value == this.orderInfo[field]);
                            if (this[index] === -1) {
                                this.form[field] = ''; // 置空对应的form字段
                            } else {
                                this.form[field] = this[field][this[index]].value;
                            }
                        }
                    });
                }
            }).catch(error => {
                console.error('获取进件资料失败:', error);
                uni.showToast({
                    title: '获取资料失败，请重试',
                    icon: 'none'
                });
            });
        },
        tab(index) {
            this.curr = index;
            this.text = this.curr == 0 ? '下一步' : '提交';
        },
        submit() {
            if (this.curr === 0) {
                // 当前是第一步，点击后进入第二步
                this.curr = 1;
                this.text = '提交';
            } else if (this.curr === 1) {

                // 当前是第二步，点击后提交数据
                this.request(API.submitApproveAddBaseInfo, 'POST', this.form, true).then(res => {
                    if (res.code === 0) {
                        uni.showToast({
                            title: '提交成功',
                            icon: 'success',
                            duration: 2000
                        });
                        // 等待2秒后再回到上一页
                        setTimeout(() => {
                            uni.redirectTo({
                                url: "/pages/order/approveAddInfo?order_id=" + this.form.order_id
                            })
                        }, 2000);
                    } else {
                        uni.showToast({
                            title: res.msg,
                            icon: 'none'
                        });
                    }
                }).catch(error => {
                    console.error('提交失败:', error);
                    uni.showToast({
                        title: '提交失败，请重试',
                        icon: 'none'
                    });
                });
            }
        }
    }
};
</script>

<style scoped lang="scss">
@import '@/assets/css/order/approveAddBaseInfo.scss';
</style>